package com.qiguliuxing.dts.core.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * com.qiguliuxing.dts.core.config
 * xiaohei
 * 2022/12/17
 * 0:19
 **/
@Data
@ConfigurationProperties(prefix = "dts.wx")
public class WxMaProperties {
    private List<Config> configs;

    @Data
    public static class Config{
        /**
         * 设置微信小程序的appid
         */
        private String appid;

        /**
         * 设置微信小程序的Secret
         */
        private String secret;

        /**
         * 设置微信小程序消息服务器配置的token
         */
        private String token;

        /**
         * 设置微信小程序消息服务器配置的EncodingAESKey
         */
        private String aesKey;

        /**
         * 消息格式，XML或者JSON
         */
        private String msgDataFormat;
    }
}
